Skip to content

Fix for OnReturn hook in GetSecondary pipeline #926

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 2 commits into from
Jan 19, 2021
Merged

Conversation

maurei
Copy link
Member

@maurei maurei commented Jan 19, 2021

Fixes #924

An invalid cast to IIdentifiable threw off the hook executor.

Additionally, previously the IResourceService.GetSecondaryAsync returned a primary resource with a set relationship field that corresponded to the secondary resources of the request. This has been changed recently to returning just the requested secondary resources. The hook executor also needs to take this into account.

Copy link
Contributor

@bart-degreed bart-degreed left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I tried using TypeHelper.ExtractResources, but it does not work.

@bart-degreed bart-degreed merged commit b09e6b1 into master Jan 19, 2021
@bart-degreed bart-degreed deleted the hooks-hotfix branch January 19, 2021 14:09
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
2 participants